package com.nlgc365.designpattern.Chapter04_Pattern.Behavior.P04_ChainOfResponsibility.pattern1.ByList;

/**
 * 当前包的启动类入口
 */
public class Application {
    public static void main(String[] args) {
        HandlerChain handlerChain = new HandlerChain();
        ConcernHandlerA concernHandlerA = new ConcernHandlerA();
        ConcernHandlerB concernHandlerB = new ConcernHandlerB();
        handlerChain.addHandler(concernHandlerA);
        handlerChain.addHandler(concernHandlerB);
        handlerChain.handle();
    }
}
